<!-- This comment will put IE 6, 7 and 8 in quirks mode -->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>shark::McPegasos&lt; VectorType &gt; Class Template Reference</title>
<script type="text/javaScript" src="search/search.js"></script>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<script src="https://polyfill.io/v3/polyfill.min.js?features=es6"></script>
<script id="MathJax-script" async src="https://cdn.jsdelivr.net/npm/mathjax@3.0.1/es5/tex-mml-chtml.js"></script>
<script src="../../mlstyle.js"></script>
<link href="../css/besser.css" rel="stylesheet" type="text/css"/>
</head>
<!-- pretty cool: each body gets an id tag which is the basename of the web page  -->
<!--              and allows for page-specific CSS. this is client-side scripted, -->
<!--              so the id will not yet show up in the served source code -->
<script type="text/javascript">
    jQuery(document).ready(function () {
        var url = jQuery(location).attr('href');
        var pname = url.substr(url.lastIndexOf("/")+1, url.lastIndexOf(".")-url.lastIndexOf("/")-1);
        jQuery('#this_url').html('<strong>' + pname + '</strong>');
        jQuery('body').attr('id', pname);
    });
</script>
<body>
    <div id="shark_old">
        <div id="wrap">
            <div id="header">
                <div id="site-name"><a href="../../sphinx_pages/build/html/index.html">Shark machine learning library</a></div>
                <ul id="nav">
                    <li >
                        <a href="../../sphinx_pages/build/html/rest_sources/installation.html">Installation</a>
                    </li>
		    <li >
                        <a href="../../sphinx_pages/build/html/rest_sources/tutorials/tutorials.html">Tutorials</a>
                    </li>
		    <li >
                        <a href="../../sphinx_pages/build/html/rest_sources/benchmark.html">Benchmarks</a>
                    </li>
                    <li class="active">
                        <a href="classes.html">Documentation</a>
                        <ul>
                            <li class="first"></li>
                            <li><a href="../../sphinx_pages/build/html/rest_sources/quickref/quickref.html">Quick references</a></li>
                            <li><a href="classes.html">Class list</a></li>
                            <li class="last"><a href="group__shark__globals.html">Global functions</a></li>
                        </ul>
                    </li>
                </ul>
            </div>
        </div>
    </div>
<div id="doxywrapper">
<!--
    <div id="global_doxytitle">Doxygen<br>Documentation:</div>
-->
    <div id="navrow_wrapper">
<!-- Generated by Doxygen 1.9.8 -->
<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="namespaceshark.html">shark</a></li><li class="navelem"><a class="el" href="classshark_1_1_mc_pegasos.html">McPegasos</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="classshark_1_1_mc_pegasos-members.html">List of all members</a> &#124;
<a href="#pub-types">Public Types</a> &#124;
<a href="#pub-static-methods">Static Public Member Functions</a> &#124;
<a href="#pro-types">Protected Types</a> &#124;
<a href="#pro-static-methods">Static Protected Member Functions</a>  </div>
  <div class="headertitle"><div class="title">shark::McPegasos&lt; VectorType &gt; Class Template Reference</div></div>
</div><!--header-->
<div class="contents">

<p><a class="el" href="classshark_1_1_pegasos.html" title="Pegasos solver for linear (binary) support vector machines.">Pegasos</a> solver for linear multi-class support vector machines.  
 <a href="classshark_1_1_mc_pegasos.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="_pegasos_8h_source.html">shark/Algorithms/Pegasos.h</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-types" name="pub-types"></a>
Public Types</h2></td></tr>
<tr class="memitem:ab3e259b1ae572330edd0e55a055b3833" id="r_ab3e259b1ae572330edd0e55a055b3833"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_mc_pegasos.html#ab3e259b1ae572330edd0e55a055b3833">eMarginType</a> { <a class="el" href="classshark_1_1_mc_pegasos.html#ab3e259b1ae572330edd0e55a055b3833ae1fbea6f6181c86d50014e07f2704aa9">emRelative</a>
, <a class="el" href="classshark_1_1_mc_pegasos.html#ab3e259b1ae572330edd0e55a055b3833a77fd5e7e4710a38dd7a5263df635a496">emAbsolute</a>
 }</td></tr>
<tr class="memdesc:ab3e259b1ae572330edd0e55a055b3833"><td class="mdescLeft">&#160;</td><td class="mdescRight">Multi-class margin type.  <a href="classshark_1_1_mc_pegasos.html#ab3e259b1ae572330edd0e55a055b3833">More...</a><br /></td></tr>
<tr class="separator:ab3e259b1ae572330edd0e55a055b3833"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac0276cdae882f2e1cc93ea2c66ea4d54" id="r_ac0276cdae882f2e1cc93ea2c66ea4d54"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_mc_pegasos.html#ac0276cdae882f2e1cc93ea2c66ea4d54">eLossType</a> { <br />
&#160;&#160;<a class="el" href="classshark_1_1_mc_pegasos.html#ac0276cdae882f2e1cc93ea2c66ea4d54a46985838db2e85c49d88e4e8715f7f8f">elNaiveHinge</a>
, <a class="el" href="classshark_1_1_mc_pegasos.html#ac0276cdae882f2e1cc93ea2c66ea4d54a16e7e0f7c463a8963a0ad93203225ac8">elDiscriminativeMax</a>
, <a class="el" href="classshark_1_1_mc_pegasos.html#ac0276cdae882f2e1cc93ea2c66ea4d54ad839128bac9615ab6c902803355ec434">elDiscriminativeSum</a>
, <a class="el" href="classshark_1_1_mc_pegasos.html#ac0276cdae882f2e1cc93ea2c66ea4d54abf0f18880cde1eb5a648533faf4b8545">elTotalMax</a>
, <br />
&#160;&#160;<a class="el" href="classshark_1_1_mc_pegasos.html#ac0276cdae882f2e1cc93ea2c66ea4d54af2e553371cb3ace44a9dbae05f355ba7">elTotalSum</a>
<br />
 }</td></tr>
<tr class="memdesc:ac0276cdae882f2e1cc93ea2c66ea4d54"><td class="mdescLeft">&#160;</td><td class="mdescRight">Multi-class loss function type.  <a href="classshark_1_1_mc_pegasos.html#ac0276cdae882f2e1cc93ea2c66ea4d54">More...</a><br /></td></tr>
<tr class="separator:ac0276cdae882f2e1cc93ea2c66ea4d54"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-static-methods" name="pub-static-methods"></a>
Static Public Member Functions</h2></td></tr>
<tr class="memitem:a559261c0f268ed08557af883e0daddfb" id="r_a559261c0f268ed08557af883e0daddfb"><td class="memTemplParams" colspan="2">template&lt;class WeightType &gt; </td></tr>
<tr class="memitem:a559261c0f268ed08557af883e0daddfb"><td class="memTemplItemLeft" align="right" valign="top">static std::size_t&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="classshark_1_1_mc_pegasos.html#a559261c0f268ed08557af883e0daddfb">solve</a> (<a class="el" href="classshark_1_1_labeled_data.html">LabeledData</a>&lt; <a class="el" href="_c_svm_linear_8cpp.html#ab106d665148183a2dc94dcf8716c9203">VectorType</a>, unsigned int &gt; const &amp;data, <a class="el" href="classshark_1_1_mc_pegasos.html#ab3e259b1ae572330edd0e55a055b3833">eMarginType</a> margintype, <a class="el" href="classshark_1_1_mc_pegasos.html#ac0276cdae882f2e1cc93ea2c66ea4d54">eLossType</a> losstype, bool sumToZero, double C, std::vector&lt; WeightType &gt; &amp;w, std::size_t batchsize=1, double varepsilon=0.001)</td></tr>
<tr class="memdesc:a559261c0f268ed08557af883e0daddfb"><td class="mdescLeft">&#160;</td><td class="mdescRight">Solve the primal multi-class SVM problem.  <br /></td></tr>
<tr class="separator:a559261c0f268ed08557af883e0daddfb"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pro-types" name="pro-types"></a>
Protected Types</h2></td></tr>
<tr class="memitem:a67d3d862e403bfeb47db5ea1b19a8885" id="r_a67d3d862e403bfeb47db5ea1b19a8885"><td class="memItemLeft" align="right" valign="top">typedef bool(*&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_mc_pegasos.html#a67d3d862e403bfeb47db5ea1b19a8885">LossGradientFunction</a>) (<a class="el" href="_c_svm_linear_8cpp.html#ab106d665148183a2dc94dcf8716c9203">VectorType</a> const &amp;, unsigned int, RealVector const &amp;, std::vector&lt; <a class="el" href="_c_svm_linear_8cpp.html#ab106d665148183a2dc94dcf8716c9203">VectorType</a> &gt; &amp;, bool)</td></tr>
<tr class="separator:a67d3d862e403bfeb47db5ea1b19a8885"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pro-static-methods" name="pro-static-methods"></a>
Static Protected Member Functions</h2></td></tr>
<tr class="memitem:a0562f636d27be3132daa1f9e68f1bda9" id="r_a0562f636d27be3132daa1f9e68f1bda9"><td class="memItemLeft" align="right" valign="top">static bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_mc_pegasos.html#a0562f636d27be3132daa1f9e68f1bda9">lossGradientANH</a> (<a class="el" href="_c_svm_linear_8cpp.html#ab106d665148183a2dc94dcf8716c9203">VectorType</a> const &amp;x, unsigned int y, RealVector const &amp;f, std::vector&lt; <a class="el" href="_c_svm_linear_8cpp.html#ab106d665148183a2dc94dcf8716c9203">VectorType</a> &gt; &amp;gradient, bool sumToZero)</td></tr>
<tr class="separator:a0562f636d27be3132daa1f9e68f1bda9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3685c0b79cd8ed1b8ad8f730bee3d836" id="r_a3685c0b79cd8ed1b8ad8f730bee3d836"><td class="memItemLeft" align="right" valign="top">static bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_mc_pegasos.html#a3685c0b79cd8ed1b8ad8f730bee3d836">lossGradientRDM</a> (<a class="el" href="_c_svm_linear_8cpp.html#ab106d665148183a2dc94dcf8716c9203">VectorType</a> const &amp;x, unsigned int y, RealVector const &amp;f, std::vector&lt; <a class="el" href="_c_svm_linear_8cpp.html#ab106d665148183a2dc94dcf8716c9203">VectorType</a> &gt; &amp;gradient, bool sumToZero)</td></tr>
<tr class="separator:a3685c0b79cd8ed1b8ad8f730bee3d836"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afdee49e649204c16765c03464bf97f01" id="r_afdee49e649204c16765c03464bf97f01"><td class="memItemLeft" align="right" valign="top">static bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_mc_pegasos.html#afdee49e649204c16765c03464bf97f01">lossGradientRDS</a> (<a class="el" href="_c_svm_linear_8cpp.html#ab106d665148183a2dc94dcf8716c9203">VectorType</a> const &amp;x, unsigned int y, RealVector const &amp;f, std::vector&lt; <a class="el" href="_c_svm_linear_8cpp.html#ab106d665148183a2dc94dcf8716c9203">VectorType</a> &gt; &amp;gradient, bool sumToZero)</td></tr>
<tr class="separator:afdee49e649204c16765c03464bf97f01"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae477032ac112037c0f7bcf1178a60173" id="r_ae477032ac112037c0f7bcf1178a60173"><td class="memItemLeft" align="right" valign="top">static bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_mc_pegasos.html#ae477032ac112037c0f7bcf1178a60173">lossGradientADS</a> (<a class="el" href="_c_svm_linear_8cpp.html#ab106d665148183a2dc94dcf8716c9203">VectorType</a> const &amp;x, unsigned int y, RealVector const &amp;f, std::vector&lt; <a class="el" href="_c_svm_linear_8cpp.html#ab106d665148183a2dc94dcf8716c9203">VectorType</a> &gt; &amp;gradient, bool sumToZero)</td></tr>
<tr class="separator:ae477032ac112037c0f7bcf1178a60173"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afbc4cd9e7322908c8aaf2c60b58e27af" id="r_afbc4cd9e7322908c8aaf2c60b58e27af"><td class="memItemLeft" align="right" valign="top">static bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_mc_pegasos.html#afbc4cd9e7322908c8aaf2c60b58e27af">lossGradientADM</a> (<a class="el" href="_c_svm_linear_8cpp.html#ab106d665148183a2dc94dcf8716c9203">VectorType</a> const &amp;x, unsigned int y, RealVector const &amp;f, std::vector&lt; <a class="el" href="_c_svm_linear_8cpp.html#ab106d665148183a2dc94dcf8716c9203">VectorType</a> &gt; &amp;gradient, bool sumToZero)</td></tr>
<tr class="separator:afbc4cd9e7322908c8aaf2c60b58e27af"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4dde2469b6bce8ab4bd5846c388004ea" id="r_a4dde2469b6bce8ab4bd5846c388004ea"><td class="memItemLeft" align="right" valign="top">static bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_mc_pegasos.html#a4dde2469b6bce8ab4bd5846c388004ea">lossGradientATS</a> (<a class="el" href="_c_svm_linear_8cpp.html#ab106d665148183a2dc94dcf8716c9203">VectorType</a> const &amp;x, unsigned int y, RealVector const &amp;f, std::vector&lt; <a class="el" href="_c_svm_linear_8cpp.html#ab106d665148183a2dc94dcf8716c9203">VectorType</a> &gt; &amp;gradient, bool sumToZero)</td></tr>
<tr class="separator:a4dde2469b6bce8ab4bd5846c388004ea"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a47cbf1499724ebd11c46738a06b5b10f" id="r_a47cbf1499724ebd11c46738a06b5b10f"><td class="memItemLeft" align="right" valign="top">static bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_mc_pegasos.html#a47cbf1499724ebd11c46738a06b5b10f">lossGradientATM</a> (<a class="el" href="_c_svm_linear_8cpp.html#ab106d665148183a2dc94dcf8716c9203">VectorType</a> const &amp;x, unsigned int y, RealVector const &amp;f, std::vector&lt; <a class="el" href="_c_svm_linear_8cpp.html#ab106d665148183a2dc94dcf8716c9203">VectorType</a> &gt; &amp;gradient, bool sumToZero)</td></tr>
<tr class="separator:a47cbf1499724ebd11c46738a06b5b10f"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><div class="compoundTemplParams">template&lt;class <a class="el" href="_c_svm_linear_8cpp.html#ab106d665148183a2dc94dcf8716c9203">VectorType</a>&gt;<br />
class shark::McPegasos&lt; VectorType &gt;</div><p><a class="el" href="classshark_1_1_pegasos.html" title="Pegasos solver for linear (binary) support vector machines.">Pegasos</a> solver for linear multi-class support vector machines. </p>

<p class="definition">Definition at line <a class="el" href="_pegasos_8h_source.html#l00192">192</a> of file <a class="el" href="_pegasos_8h_source.html">Pegasos.h</a>.</p>
</div><h2 class="groupheader">Member Typedef Documentation</h2>
<a id="a67d3d862e403bfeb47db5ea1b19a8885" name="a67d3d862e403bfeb47db5ea1b19a8885"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a67d3d862e403bfeb47db5ea1b19a8885">&#9670;&#160;</a></span>LossGradientFunction</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class <a class="el" href="_c_svm_linear_8cpp.html#ab106d665148183a2dc94dcf8716c9203">VectorType</a> &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">typedef bool(* <a class="el" href="classshark_1_1_mc_pegasos.html">shark::McPegasos</a>&lt; <a class="el" href="_c_svm_linear_8cpp.html#ab106d665148183a2dc94dcf8716c9203">VectorType</a> &gt;::LossGradientFunction) (<a class="el" href="_c_svm_linear_8cpp.html#ab106d665148183a2dc94dcf8716c9203">VectorType</a> const  &amp;, unsigned int, RealVector const  &amp;, std::vector&lt; <a class="el" href="_c_svm_linear_8cpp.html#ab106d665148183a2dc94dcf8716c9203">VectorType</a> &gt; &amp;, bool)</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="_pegasos_8h_source.html#l00384">384</a> of file <a class="el" href="_pegasos_8h_source.html">Pegasos.h</a>.</p>

</div>
</div>
<h2 class="groupheader">Member Enumeration Documentation</h2>
<a id="ac0276cdae882f2e1cc93ea2c66ea4d54" name="ac0276cdae882f2e1cc93ea2c66ea4d54"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac0276cdae882f2e1cc93ea2c66ea4d54">&#9670;&#160;</a></span>eLossType</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class <a class="el" href="_c_svm_linear_8cpp.html#ab106d665148183a2dc94dcf8716c9203">VectorType</a> &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="classshark_1_1_mc_pegasos.html#ac0276cdae882f2e1cc93ea2c66ea4d54">shark::McPegasos::eLossType</a></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Multi-class loss function type. </p>
<table class="fieldtable">
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a id="ac0276cdae882f2e1cc93ea2c66ea4d54a46985838db2e85c49d88e4e8715f7f8f" name="ac0276cdae882f2e1cc93ea2c66ea4d54a46985838db2e85c49d88e4e8715f7f8f"></a>elNaiveHinge&#160;</td><td class="fielddoc"></td></tr>
<tr><td class="fieldname"><a id="ac0276cdae882f2e1cc93ea2c66ea4d54a16e7e0f7c463a8963a0ad93203225ac8" name="ac0276cdae882f2e1cc93ea2c66ea4d54a16e7e0f7c463a8963a0ad93203225ac8"></a>elDiscriminativeMax&#160;</td><td class="fielddoc"></td></tr>
<tr><td class="fieldname"><a id="ac0276cdae882f2e1cc93ea2c66ea4d54ad839128bac9615ab6c902803355ec434" name="ac0276cdae882f2e1cc93ea2c66ea4d54ad839128bac9615ab6c902803355ec434"></a>elDiscriminativeSum&#160;</td><td class="fielddoc"></td></tr>
<tr><td class="fieldname"><a id="ac0276cdae882f2e1cc93ea2c66ea4d54abf0f18880cde1eb5a648533faf4b8545" name="ac0276cdae882f2e1cc93ea2c66ea4d54abf0f18880cde1eb5a648533faf4b8545"></a>elTotalMax&#160;</td><td class="fielddoc"></td></tr>
<tr><td class="fieldname"><a id="ac0276cdae882f2e1cc93ea2c66ea4d54af2e553371cb3ace44a9dbae05f355ba7" name="ac0276cdae882f2e1cc93ea2c66ea4d54af2e553371cb3ace44a9dbae05f355ba7"></a>elTotalSum&#160;</td><td class="fielddoc"></td></tr>
</table>

<p class="definition">Definition at line <a class="el" href="_pegasos_8h_source.html#l00203">203</a> of file <a class="el" href="_pegasos_8h_source.html">Pegasos.h</a>.</p>

</div>
</div>
<a id="ab3e259b1ae572330edd0e55a055b3833" name="ab3e259b1ae572330edd0e55a055b3833"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab3e259b1ae572330edd0e55a055b3833">&#9670;&#160;</a></span>eMarginType</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class <a class="el" href="_c_svm_linear_8cpp.html#ab106d665148183a2dc94dcf8716c9203">VectorType</a> &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="classshark_1_1_mc_pegasos.html#ab3e259b1ae572330edd0e55a055b3833">shark::McPegasos::eMarginType</a></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Multi-class margin type. </p>
<table class="fieldtable">
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a id="ab3e259b1ae572330edd0e55a055b3833ae1fbea6f6181c86d50014e07f2704aa9" name="ab3e259b1ae572330edd0e55a055b3833ae1fbea6f6181c86d50014e07f2704aa9"></a>emRelative&#160;</td><td class="fielddoc"></td></tr>
<tr><td class="fieldname"><a id="ab3e259b1ae572330edd0e55a055b3833a77fd5e7e4710a38dd7a5263df635a496" name="ab3e259b1ae572330edd0e55a055b3833a77fd5e7e4710a38dd7a5263df635a496"></a>emAbsolute&#160;</td><td class="fielddoc"></td></tr>
</table>

<p class="definition">Definition at line <a class="el" href="_pegasos_8h_source.html#l00196">196</a> of file <a class="el" href="_pegasos_8h_source.html">Pegasos.h</a>.</p>

</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a id="afbc4cd9e7322908c8aaf2c60b58e27af" name="afbc4cd9e7322908c8aaf2c60b58e27af"></a>
<h2 class="memtitle"><span class="permalink"><a href="#afbc4cd9e7322908c8aaf2c60b58e27af">&#9670;&#160;</a></span>lossGradientADM()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class <a class="el" href="_c_svm_linear_8cpp.html#ab106d665148183a2dc94dcf8716c9203">VectorType</a> &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static bool <a class="el" href="classshark_1_1_mc_pegasos.html">shark::McPegasos</a>&lt; <a class="el" href="_c_svm_linear_8cpp.html#ab106d665148183a2dc94dcf8716c9203">VectorType</a> &gt;::lossGradientADM </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="_c_svm_linear_8cpp.html#ab106d665148183a2dc94dcf8716c9203">VectorType</a> const &amp;&#160;</td>
          <td class="paramname"><em>x</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">unsigned int&#160;</td>
          <td class="paramname"><em>y</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">RealVector const &amp;&#160;</td>
          <td class="paramname"><em>f</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::vector&lt; <a class="el" href="_c_svm_linear_8cpp.html#ab106d665148183a2dc94dcf8716c9203">VectorType</a> &gt; &amp;&#160;</td>
          <td class="paramname"><em>gradient</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>sumToZero</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span><span class="mlabel">protected</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="_pegasos_8h_source.html#l00483">483</a> of file <a class="el" href="_pegasos_8h_source.html">Pegasos.h</a>.</p>

<p class="reference">Referenced by <a class="el" href="classshark_1_1_mc_pegasos.html#a559261c0f268ed08557af883e0daddfb">shark::McPegasos&lt; VectorType &gt;::solve()</a>.</p>

</div>
</div>
<a id="ae477032ac112037c0f7bcf1178a60173" name="ae477032ac112037c0f7bcf1178a60173"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae477032ac112037c0f7bcf1178a60173">&#9670;&#160;</a></span>lossGradientADS()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class <a class="el" href="_c_svm_linear_8cpp.html#ab106d665148183a2dc94dcf8716c9203">VectorType</a> &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static bool <a class="el" href="classshark_1_1_mc_pegasos.html">shark::McPegasos</a>&lt; <a class="el" href="_c_svm_linear_8cpp.html#ab106d665148183a2dc94dcf8716c9203">VectorType</a> &gt;::lossGradientADS </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="_c_svm_linear_8cpp.html#ab106d665148183a2dc94dcf8716c9203">VectorType</a> const &amp;&#160;</td>
          <td class="paramname"><em>x</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">unsigned int&#160;</td>
          <td class="paramname"><em>y</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">RealVector const &amp;&#160;</td>
          <td class="paramname"><em>f</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::vector&lt; <a class="el" href="_c_svm_linear_8cpp.html#ab106d665148183a2dc94dcf8716c9203">VectorType</a> &gt; &amp;&#160;</td>
          <td class="paramname"><em>gradient</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>sumToZero</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span><span class="mlabel">protected</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="_pegasos_8h_source.html#l00456">456</a> of file <a class="el" href="_pegasos_8h_source.html">Pegasos.h</a>.</p>

<p class="reference">References <a class="el" href="namespaceshark.html#a6ae694efca57e84792fcff090223437e">shark::mean()</a>.</p>

<p class="reference">Referenced by <a class="el" href="classshark_1_1_mc_pegasos.html#a559261c0f268ed08557af883e0daddfb">shark::McPegasos&lt; VectorType &gt;::solve()</a>.</p>

</div>
</div>
<a id="a0562f636d27be3132daa1f9e68f1bda9" name="a0562f636d27be3132daa1f9e68f1bda9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0562f636d27be3132daa1f9e68f1bda9">&#9670;&#160;</a></span>lossGradientANH()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class <a class="el" href="_c_svm_linear_8cpp.html#ab106d665148183a2dc94dcf8716c9203">VectorType</a> &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static bool <a class="el" href="classshark_1_1_mc_pegasos.html">shark::McPegasos</a>&lt; <a class="el" href="_c_svm_linear_8cpp.html#ab106d665148183a2dc94dcf8716c9203">VectorType</a> &gt;::lossGradientANH </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="_c_svm_linear_8cpp.html#ab106d665148183a2dc94dcf8716c9203">VectorType</a> const &amp;&#160;</td>
          <td class="paramname"><em>x</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">unsigned int&#160;</td>
          <td class="paramname"><em>y</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">RealVector const &amp;&#160;</td>
          <td class="paramname"><em>f</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::vector&lt; <a class="el" href="_c_svm_linear_8cpp.html#ab106d665148183a2dc94dcf8716c9203">VectorType</a> &gt; &amp;&#160;</td>
          <td class="paramname"><em>gradient</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>sumToZero</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span><span class="mlabel">protected</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="_pegasos_8h_source.html#l00387">387</a> of file <a class="el" href="_pegasos_8h_source.html">Pegasos.h</a>.</p>

<p class="reference">Referenced by <a class="el" href="classshark_1_1_mc_pegasos.html#a559261c0f268ed08557af883e0daddfb">shark::McPegasos&lt; VectorType &gt;::solve()</a>.</p>

</div>
</div>
<a id="a47cbf1499724ebd11c46738a06b5b10f" name="a47cbf1499724ebd11c46738a06b5b10f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a47cbf1499724ebd11c46738a06b5b10f">&#9670;&#160;</a></span>lossGradientATM()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class <a class="el" href="_c_svm_linear_8cpp.html#ab106d665148183a2dc94dcf8716c9203">VectorType</a> &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static bool <a class="el" href="classshark_1_1_mc_pegasos.html">shark::McPegasos</a>&lt; <a class="el" href="_c_svm_linear_8cpp.html#ab106d665148183a2dc94dcf8716c9203">VectorType</a> &gt;::lossGradientATM </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="_c_svm_linear_8cpp.html#ab106d665148183a2dc94dcf8716c9203">VectorType</a> const &amp;&#160;</td>
          <td class="paramname"><em>x</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">unsigned int&#160;</td>
          <td class="paramname"><em>y</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">RealVector const &amp;&#160;</td>
          <td class="paramname"><em>f</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::vector&lt; <a class="el" href="_c_svm_linear_8cpp.html#ab106d665148183a2dc94dcf8716c9203">VectorType</a> &gt; &amp;&#160;</td>
          <td class="paramname"><em>gradient</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>sumToZero</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span><span class="mlabel">protected</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="_pegasos_8h_source.html#l00553">553</a> of file <a class="el" href="_pegasos_8h_source.html">Pegasos.h</a>.</p>

<p class="reference">Referenced by <a class="el" href="classshark_1_1_mc_pegasos.html#a559261c0f268ed08557af883e0daddfb">shark::McPegasos&lt; VectorType &gt;::solve()</a>.</p>

</div>
</div>
<a id="a4dde2469b6bce8ab4bd5846c388004ea" name="a4dde2469b6bce8ab4bd5846c388004ea"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4dde2469b6bce8ab4bd5846c388004ea">&#9670;&#160;</a></span>lossGradientATS()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class <a class="el" href="_c_svm_linear_8cpp.html#ab106d665148183a2dc94dcf8716c9203">VectorType</a> &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static bool <a class="el" href="classshark_1_1_mc_pegasos.html">shark::McPegasos</a>&lt; <a class="el" href="_c_svm_linear_8cpp.html#ab106d665148183a2dc94dcf8716c9203">VectorType</a> &gt;::lossGradientATS </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="_c_svm_linear_8cpp.html#ab106d665148183a2dc94dcf8716c9203">VectorType</a> const &amp;&#160;</td>
          <td class="paramname"><em>x</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">unsigned int&#160;</td>
          <td class="paramname"><em>y</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">RealVector const &amp;&#160;</td>
          <td class="paramname"><em>f</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::vector&lt; <a class="el" href="_c_svm_linear_8cpp.html#ab106d665148183a2dc94dcf8716c9203">VectorType</a> &gt; &amp;&#160;</td>
          <td class="paramname"><em>gradient</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>sumToZero</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span><span class="mlabel">protected</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="_pegasos_8h_source.html#l00515">515</a> of file <a class="el" href="_pegasos_8h_source.html">Pegasos.h</a>.</p>

<p class="reference">References <a class="el" href="namespaceshark.html#a6ae694efca57e84792fcff090223437e">shark::mean()</a>.</p>

<p class="reference">Referenced by <a class="el" href="classshark_1_1_mc_pegasos.html#a559261c0f268ed08557af883e0daddfb">shark::McPegasos&lt; VectorType &gt;::solve()</a>.</p>

</div>
</div>
<a id="a3685c0b79cd8ed1b8ad8f730bee3d836" name="a3685c0b79cd8ed1b8ad8f730bee3d836"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3685c0b79cd8ed1b8ad8f730bee3d836">&#9670;&#160;</a></span>lossGradientRDM()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class <a class="el" href="_c_svm_linear_8cpp.html#ab106d665148183a2dc94dcf8716c9203">VectorType</a> &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static bool <a class="el" href="classshark_1_1_mc_pegasos.html">shark::McPegasos</a>&lt; <a class="el" href="_c_svm_linear_8cpp.html#ab106d665148183a2dc94dcf8716c9203">VectorType</a> &gt;::lossGradientRDM </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="_c_svm_linear_8cpp.html#ab106d665148183a2dc94dcf8716c9203">VectorType</a> const &amp;&#160;</td>
          <td class="paramname"><em>x</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">unsigned int&#160;</td>
          <td class="paramname"><em>y</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">RealVector const &amp;&#160;</td>
          <td class="paramname"><em>f</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::vector&lt; <a class="el" href="_c_svm_linear_8cpp.html#ab106d665148183a2dc94dcf8716c9203">VectorType</a> &gt; &amp;&#160;</td>
          <td class="paramname"><em>gradient</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>sumToZero</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span><span class="mlabel">protected</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="_pegasos_8h_source.html#l00408">408</a> of file <a class="el" href="_pegasos_8h_source.html">Pegasos.h</a>.</p>

<p class="reference">Referenced by <a class="el" href="classshark_1_1_mc_pegasos.html#a559261c0f268ed08557af883e0daddfb">shark::McPegasos&lt; VectorType &gt;::solve()</a>.</p>

</div>
</div>
<a id="afdee49e649204c16765c03464bf97f01" name="afdee49e649204c16765c03464bf97f01"></a>
<h2 class="memtitle"><span class="permalink"><a href="#afdee49e649204c16765c03464bf97f01">&#9670;&#160;</a></span>lossGradientRDS()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class <a class="el" href="_c_svm_linear_8cpp.html#ab106d665148183a2dc94dcf8716c9203">VectorType</a> &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static bool <a class="el" href="classshark_1_1_mc_pegasos.html">shark::McPegasos</a>&lt; <a class="el" href="_c_svm_linear_8cpp.html#ab106d665148183a2dc94dcf8716c9203">VectorType</a> &gt;::lossGradientRDS </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="_c_svm_linear_8cpp.html#ab106d665148183a2dc94dcf8716c9203">VectorType</a> const &amp;&#160;</td>
          <td class="paramname"><em>x</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">unsigned int&#160;</td>
          <td class="paramname"><em>y</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">RealVector const &amp;&#160;</td>
          <td class="paramname"><em>f</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::vector&lt; <a class="el" href="_c_svm_linear_8cpp.html#ab106d665148183a2dc94dcf8716c9203">VectorType</a> &gt; &amp;&#160;</td>
          <td class="paramname"><em>gradient</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>sumToZero</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span><span class="mlabel">protected</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="_pegasos_8h_source.html#l00435">435</a> of file <a class="el" href="_pegasos_8h_source.html">Pegasos.h</a>.</p>

<p class="reference">Referenced by <a class="el" href="classshark_1_1_mc_pegasos.html#a559261c0f268ed08557af883e0daddfb">shark::McPegasos&lt; VectorType &gt;::solve()</a>.</p>

</div>
</div>
<a id="a559261c0f268ed08557af883e0daddfb" name="a559261c0f268ed08557af883e0daddfb"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a559261c0f268ed08557af883e0daddfb">&#9670;&#160;</a></span>solve()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class <a class="el" href="_c_svm_linear_8cpp.html#ab106d665148183a2dc94dcf8716c9203">VectorType</a> &gt; </div>
<div class="memtemplate">
template&lt;class WeightType &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static std::size_t <a class="el" href="classshark_1_1_mc_pegasos.html">shark::McPegasos</a>&lt; <a class="el" href="_c_svm_linear_8cpp.html#ab106d665148183a2dc94dcf8716c9203">VectorType</a> &gt;::solve </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classshark_1_1_labeled_data.html">LabeledData</a>&lt; <a class="el" href="_c_svm_linear_8cpp.html#ab106d665148183a2dc94dcf8716c9203">VectorType</a>, unsigned int &gt; const &amp;&#160;</td>
          <td class="paramname"><em>data</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classshark_1_1_mc_pegasos.html#ab3e259b1ae572330edd0e55a055b3833">eMarginType</a>&#160;</td>
          <td class="paramname"><em>margintype</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classshark_1_1_mc_pegasos.html#ac0276cdae882f2e1cc93ea2c66ea4d54">eLossType</a>&#160;</td>
          <td class="paramname"><em>losstype</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>sumToZero</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>C</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::vector&lt; WeightType &gt; &amp;&#160;</td>
          <td class="paramname"><em>w</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::size_t&#160;</td>
          <td class="paramname"><em>batchsize</em> = <code>1</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>varepsilon</em> = <code>0.001</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Solve the primal multi-class SVM problem. </p>
<p>In addition to "standard" <a class="el" href="classshark_1_1_pegasos.html" title="Pegasos solver for linear (binary) support vector machines.">Pegasos</a> this solver checks a meaningful stopping criterion.</p>
<p>The function returns the number of model predictions during training (this is comparable to SMO iterations). </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">data</td><td>training data  </td></tr>
    <tr><td class="paramname">margintype</td><td>margin function type  </td></tr>
    <tr><td class="paramname">losstype</td><td>loss function type  </td></tr>
    <tr><td class="paramname">sumToZero</td><td>enforce the sum-to-zero constraint?  </td></tr>
    <tr><td class="paramname">C</td><td>SVM regularization parameter  </td></tr>
    <tr><td class="paramname">w</td><td>class-wise weight vectors  </td></tr>
    <tr><td class="paramname">batchsize</td><td>number of samples in each gradient estimate  </td></tr>
    <tr><td class="paramname">varepsilon</td><td>solution accuracy (factor by which the primal gradient should be reduced) </td></tr>
  </table>
  </dd>
</dl>

<p class="definition">Definition at line <a class="el" href="_pegasos_8h_source.html#l00220">220</a> of file <a class="el" href="_pegasos_8h_source.html">Pegasos.h</a>.</p>

<p class="reference">References <a class="el" href="namespaceshark_1_1random.html#aa64d4174eaf7111b03e0504eaa56b666">shark::random::discrete()</a>, <a class="el" href="classshark_1_1_mc_pegasos.html#ac0276cdae882f2e1cc93ea2c66ea4d54a16e7e0f7c463a8963a0ad93203225ac8">shark::McPegasos&lt; VectorType &gt;::elDiscriminativeMax</a>, <a class="el" href="classshark_1_1_mc_pegasos.html#ac0276cdae882f2e1cc93ea2c66ea4d54ad839128bac9615ab6c902803355ec434">shark::McPegasos&lt; VectorType &gt;::elDiscriminativeSum</a>, <a class="el" href="classshark_1_1_mc_pegasos.html#ac0276cdae882f2e1cc93ea2c66ea4d54a46985838db2e85c49d88e4e8715f7f8f">shark::McPegasos&lt; VectorType &gt;::elNaiveHinge</a>, <a class="el" href="classshark_1_1_mc_pegasos.html#ac0276cdae882f2e1cc93ea2c66ea4d54abf0f18880cde1eb5a648533faf4b8545">shark::McPegasos&lt; VectorType &gt;::elTotalMax</a>, <a class="el" href="classshark_1_1_mc_pegasos.html#ac0276cdae882f2e1cc93ea2c66ea4d54af2e553371cb3ace44a9dbae05f355ba7">shark::McPegasos&lt; VectorType &gt;::elTotalSum</a>, <a class="el" href="classshark_1_1_mc_pegasos.html#ab3e259b1ae572330edd0e55a055b3833a77fd5e7e4710a38dd7a5263df635a496">shark::McPegasos&lt; VectorType &gt;::emAbsolute</a>, <a class="el" href="classshark_1_1_mc_pegasos.html#ab3e259b1ae572330edd0e55a055b3833ae1fbea6f6181c86d50014e07f2704aa9">shark::McPegasos&lt; VectorType &gt;::emRelative</a>, <a class="el" href="classshark_1_1_mc_pegasos.html#afbc4cd9e7322908c8aaf2c60b58e27af">shark::McPegasos&lt; VectorType &gt;::lossGradientADM()</a>, <a class="el" href="classshark_1_1_mc_pegasos.html#ae477032ac112037c0f7bcf1178a60173">shark::McPegasos&lt; VectorType &gt;::lossGradientADS()</a>, <a class="el" href="classshark_1_1_mc_pegasos.html#a0562f636d27be3132daa1f9e68f1bda9">shark::McPegasos&lt; VectorType &gt;::lossGradientANH()</a>, <a class="el" href="classshark_1_1_mc_pegasos.html#a47cbf1499724ebd11c46738a06b5b10f">shark::McPegasos&lt; VectorType &gt;::lossGradientATM()</a>, <a class="el" href="classshark_1_1_mc_pegasos.html#a4dde2469b6bce8ab4bd5846c388004ea">shark::McPegasos&lt; VectorType &gt;::lossGradientATS()</a>, <a class="el" href="classshark_1_1_mc_pegasos.html#a3685c0b79cd8ed1b8ad8f730bee3d836">shark::McPegasos&lt; VectorType &gt;::lossGradientRDM()</a>, <a class="el" href="classshark_1_1_mc_pegasos.html#afdee49e649204c16765c03464bf97f01">shark::McPegasos&lt; VectorType &gt;::lossGradientRDS()</a>, <a class="el" href="group__shark__globals.html#ga5333445992cd6b14392cd80a1ab5403c">shark::LabeledData&lt; InputT, LabelT &gt;::numberOfElements()</a>, <a class="el" href="_exception_8h.html#a73abb5049a0168d72a48e72dda41708b">SHARK_ASSERT</a>, and <a class="el" href="_exception_8h.html#adce1f80097c69010f5eab2618fa2e971">SHARK_RUNTIME_CHECK</a>.</p>

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>include/shark/Algorithms/<a class="el" href="_pegasos_8h_source.html">Pegasos.h</a></li>
</ul>
</div><!-- contents -->
</div>
</body>
</html>
